import * as actionTypes from "./constants"

const defaultState={
    mydata:[]
}

const reducer=(state=defaultState,action)=>{
    switch(action.type){
        case actionTypes.CHANGE_MYDATA:
            return {...state,mydata:action.data}
        default :
            return state
    }
}
export default reducer